/**
 * 国际化配置
 */

import { zhCN, enUS } from './locales'

export type Locale = 'zh' | 'en'

export const locales = {
  zh: zhCN,
  en: enUS
}

export const getLocale = (locale: Locale) => {
  return locales[locale] || locales.zh
}

export default locales

